public class Account {
    /*  1)、创建一个账户Account类，该类有id:账户号码(字符串类型),password:账户密码(int),name:真实姓名(字符串类型), personId:身份证号码(字符串类型),email:客户的电子邮箱(字符串类型),balance:账户余额(double)。
      存款方法:deposit(double balance),取款方法:withdraw(double balance)。构造方法:有参和无参,有参构造方法用于设置必要的属性
      并且通过test()方法将所有成员变量打印出来，调用存款和取款方法*/
     String id;
     String  password;
    String name;
    String personId;
     String email;
    double balance;

    public Account() {
    }

    public Account(String id, String password, String name, String personId, String email, double balance) {
        this.id = id;
        this.password = password;
        this.name = name;
        this.personId = personId;
        this.email = email;
        this.balance = balance;
    }

    public void deposit(double balance) {
        if (balance > 0) {
            return;

        }
        this.balance += balance;
    }

    public void withdraw(double money) {
        if (balance < 0 || money > this.balance) {
            return;

        }
        this.balance -= money;
    }
}
